package edu.sctu.zhuyingzhi.month201505.day20150529.studentToEatTestV2;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by user13 on 2015/5/27.
 */
public class Conteen {


     private HashMap<Integer,HashMap> conteen = new HashMap<>();
     private Floor floor = new Floor();
     private List<String> seat = new ArrayList<>();
     private int queueLone ;




    public Conteen(){

        /**
        * 食堂的楼层
        */

        conteen.put(1,floor.getFloor1());
        conteen.put(2,floor.getFloor2());
        conteen.put(3,floor.getFloor3());

        int x;
        for (int i = 0; i < 100; i++) {
            x = (int) (Math.random()*10);
            if (x<5)
            seat.add("有位子");
            else
            seat.add("没位子");
            i++;
        }


        queueLone = (int) (Math.random()*20);



    }




    public int getQueueLone(){
        return queueLone;
    }

    public HashMap<Integer,HashMap> getConteen(){

        return conteen;
    }

    public List<String> getSeat(){
        return seat;
    }

    public HashMap<Integer,HashMap<String,Integer>> returnWindow(){

        return null;
    }

}
